package com.bootdo.wx.dao;

import com.bootdo.wx.domain.GoodsImagesDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 商品图片
 * @author sys
 * @email 1992lcg@163.com
 * @date 2019-03-19 16:39:22
 */
@Mapper
public interface GoodsImagesDao {

	GoodsImagesDO get(String id);
	
	List<GoodsImagesDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(GoodsImagesDO goodsImages);
	
	int update(GoodsImagesDO goodsImages);
	
	int remove(String id);
	
	int batchRemove(String[] ids);

	int removeByGoodsId(String goodsId);

	List<GoodsImagesDO> getGoodsImgs(Map<String, Object> params);

    List<String> getImgUrlByAddress(Map<String, Object> params);
}
